package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2018/6/26.
 */
@TableName(value = "vl_article")
public class Article extends Model<Article>{
    private static final long serialVersionUID = 1L;

    private int id;
    private String title;
    @TableField(value = "catagory_id")
    private int catagoryId;
    @TableField(value = "catagory_ids")
    private String catagoryIds;
    @TableField(value = "file_id")
    private int fileId;
    private String url;
    private int type;
    @TableField(value = "user_id")
    private int userId;
    @TableField(value = "care_num")
    private int careNum;
    @TableField(value = "share_num")
    private int shareNum;
    private String decript;
    @TableField(value = "video_length")
    private int videoLength;
    @TableField(value = "view_num")
    private int viewNum;
    @TableField(value = "create_time")
    private Date createTime;
    private String address;
    @TableField(value = "vedio_oss")
    private String vedioId;
    @TableField(value = "bg_image")
    private String bgImage;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getCatagoryId() {
        return catagoryId;
    }

    public void setCatagoryId(int catagoryId) {
        this.catagoryId = catagoryId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCareNum() {
        return careNum;
    }

    public void setCareNum(int careNum) {
        this.careNum = careNum;
    }

    public int getShareNum() {
        return shareNum;
    }

    public void setShareNum(int shareNum) {
        this.shareNum = shareNum;
    }

    public String getDecript() {
        return decript;
    }

    public void setDecript(String decript) {
        this.decript = decript;
    }

    public int getVideoLength() {
        return videoLength;
    }

    public void setVideoLength(int videoLength) {
        this.videoLength = videoLength;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getFileId() {
        return fileId;
    }

    public void setFileId(int fileId) {
        this.fileId = fileId;
    }

    public int getViewNum() {
        return viewNum;
    }

    public void setViewNum(int viewNum) {
        this.viewNum = viewNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getVedioId() {
        return vedioId;
    }

    public void setVedioId(String vedioId) {
        this.vedioId = vedioId;
    }

    public String getBgImage() {
        return bgImage;
    }

    public void setBgImage(String bgImage) {
        this.bgImage = bgImage;
    }

    public String getCatagoryIds() {
        return catagoryIds;
    }

    public void setCatagoryIds(String catagoryIds) {
        this.catagoryIds = catagoryIds;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", catagoryId=" + catagoryId +
                ", catagoryIds='" + catagoryIds + '\'' +
                ", fileId=" + fileId +
                ", url='" + url + '\'' +
                ", type=" + type +
                ", userId=" + userId +
                ", careNum=" + careNum +
                ", shareNum=" + shareNum +
                ", decript='" + decript + '\'' +
                ", videoLength=" + videoLength +
                ", viewNum=" + viewNum +
                ", createTime=" + createTime +
                ", address='" + address + '\'' +
                ", vedioId='" + vedioId + '\'' +
                ", bgImage='" + bgImage + '\'' +
                '}';
    }
}
